package com.imay.live.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/4/10.
 */

public class RepostedFeedModel implements Parcelable{

    /**
     * feedId : 14839
     * feedType : 2
     * imgUrl :
     * videoUrl : https://imgs.imay.com/video-5228-1484299547-2165.mp4
     * uid : 16213
     * CheckStatus : 1
     * user : {"uid":16213,"roomId":0,"nick":"","imgHead":"","sex":0,"userLevel":0,"liveLevel":0,"vip":0,"city":"","myFollow":false,"isLive":0,"UserLv":0,"LiveLv":0,"LargeVipStatus":0,"LiveStatus":0}
     */

    private int feedId;
    private int feedType;
    private String imgUrl;
    private String videoUrl;
    private String msg;
    private int uid;
    private int CheckStatus;
    private UserModel user;
    public RepostedFeedModel() {
        super();
    }
    protected RepostedFeedModel(Parcel in) {
        feedId = in.readInt();
        feedType = in.readInt();
        imgUrl = in.readString();
        videoUrl = in.readString();
        msg = in.readString();
        uid = in.readInt();
        CheckStatus = in.readInt();
        user = in.readParcelable(UserModel.class.getClassLoader());
    }

    public static final Creator<RepostedFeedModel> CREATOR = new Creator<RepostedFeedModel>() {
        @Override
        public RepostedFeedModel createFromParcel(Parcel in) {
            return new RepostedFeedModel(in);
        }

        @Override
        public RepostedFeedModel[] newArray(int size) {
            return new RepostedFeedModel[size];
        }
    };

    public int getFeedId() {
        return feedId;
    }

    public void setFeedId(int feedId) {
        this.feedId = feedId;
    }

    public int getFeedType() {
        return feedType;
    }

    public void setFeedType(int feedType) {
        this.feedType = feedType;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getCheckStatus() {
        return CheckStatus;
    }

    public void setCheckStatus(int CheckStatus) {
        this.CheckStatus = CheckStatus;
    }

    public UserModel getUser() {
        return user;
    }

    public void setUser(UserModel user) {
        this.user = user;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(feedId);
        dest.writeInt(feedType);
        dest.writeString(imgUrl);
        dest.writeString(videoUrl);
        dest.writeString(msg);
        dest.writeInt(uid);
        dest.writeInt(CheckStatus);
        dest.writeParcelable(user, flags);
    }
}
